<div style="background: #dbdbdb;">
<h2 style="color: #0466cf; text-shadow: 1px 1px #b5b5b5;">&nbsp;Các sản phẩm mới đăng !<img src="./images/new.png" height="40" width="60" /></h2><br />
<table style="border-right: 1px solid #a6a6a6; border-bottom: 1px solid #a6a6a6; border-top: 1px solid #a6a6a6;">
    <tr>
        <?php
            include_once("template/DataProvider.php");
                            $query = "SELECT * FROM sanpham ORDER BY NgayDang DESC LIMIT 0,4";
                            $result = DataProvider::ExecuteQuery($query);
                            while($row = mysql_fetch_array($result))
                            {	   
                        ?>
                                        <td style=" text-align: center; width: 175px; border-left: 1px solid #a6a6a6;">
                                            <div style="text-align: center;">
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>">
                                                        <img src="img_us/<?php echo $row["HinhURL"];?>" width="150" height="120" style="border: 1px solid #99c7eb;" />
                                                    </a>
                                                </div>
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>" style="color: #ed0707; font-size: 14px;">
                                                        <?php echo $row["TenSP"];?>
                                                    </a>
                                            </div>
                                        </td>
                        <?php	
                        	}
        ?>
    </tr>
</table>
<table style="border-right: 1px solid #a6a6a6; border-bottom: 1px solid #a6a6a6;">
    <tr>
        <?php
            include_once("template/DataProvider.php");
                            $query = "SELECT * FROM sanpham ORDER BY NgayDang DESC LIMIT 4,4";
                            $result = DataProvider::ExecuteQuery($query);
                            while($row = mysql_fetch_array($result))
                            {	   
                        ?>
                                        <td style=" text-align: center; width: 175px; border-left: 1px solid #a6a6a6;">
                                            <div style=" text-align: center;">
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>">
                                                        <img src="img_us/<?php echo $row["HinhURL"];?>" width="150" height="120" style="border: 1px solid #99c7eb;" />
                                                    </a>
                                                </div>
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>" style="color: #ed0707; font-size: 14px;">
                                                        <?php echo $row["TenSP"];?>
                                                    </a>
                                            </div>
                                        </td>
                        <?php	
                        	}
        ?>
    </tr>
</table>
<table style="border-right: 1px solid #a6a6a6; border-bottom: 1px solid #a6a6a6;">
    <tr>
        <?php
            include_once("template/DataProvider.php");
                            $query = "SELECT * FROM sanpham ORDER BY NgayDang DESC LIMIT 9,4";
                            $result = DataProvider::ExecuteQuery($query);
                            while($row = mysql_fetch_array($result))
                            {	   
                        ?>
                                        <td style=" text-align: center; width: 175px; border-left: 1px solid #a6a6a6;">
                                            <div style=" text-align: center;">
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>">
                                                        <img src="img_us/<?php echo $row["HinhURL"];?>" width="150" height="120" style="border: 1px solid #99c7eb;" />
                                                    </a>
                                                </div>
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>" style="color: #ed0707; font-size: 14px;">
                                                        <?php echo $row["TenSP"];?>
                                                    </a>
                                            </div>
                                        </td>
                        <?php	
                        	}
        ?>
    </tr>
</table>
<table style="border-right: 1px solid #a6a6a6; border-bottom: 1px solid #a6a6a6;">
    <tr>
        <?php
            include_once("template/DataProvider.php");
                            $query = "SELECT * FROM sanpham ORDER BY NgayDang DESC LIMIT 15,4";
                            $result = DataProvider::ExecuteQuery($query);
                            while($row = mysql_fetch_array($result))
                            {	   
                        ?>
                                        <td style=" text-align: center; width: 175px; border-left: 1px solid #a6a6a6;">
                                            <div style=" text-align: center;">
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>">
                                                        <img src="img_us/<?php echo $row["HinhURL"];?>" width="150" height="120" style="border: 1px solid #99c7eb;" />
                                                    </a>
                                                </div>
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>" style="color: #ed0707; font-size: 14px;">
                                                        <?php echo $row["TenSP"];?>
                                                    </a>
                                            </div>
                                        </td>
                        <?php	
                        	}
        ?>
    </tr>
</table>
<table style="border-right: 1px solid #a6a6a6; border-bottom: 1px solid #a6a6a6;">
    <tr>
        <?php
            include_once("template/DataProvider.php");
                            $query = "SELECT * FROM sanpham ORDER BY NgayDang DESC LIMIT 20,4";
                            $result = DataProvider::ExecuteQuery($query);
                            while($row = mysql_fetch_array($result))
                            {	   
                        ?>
                                        <td style=" text-align: center; width: 175px; border-left: 1px solid #a6a6a6;">
                                            <div style=" text-align: center;">
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>">
                                                        <img src="img_us/<?php echo $row["HinhURL"];?>" width="150" height="120" style="border: 1px solid #99c7eb;" />
                                                    </a>
                                                </div>
                                                    <a href="trangchu.php?act=4&id=<?php echo $row["MaSP"]; ?>" style="color: #ed0707; font-size: 14px;">
                                                        <?php echo $row["TenSP"];?>
                                                    </a>
                                            </div>
                                        </td>
                        <?php	
                        	}
        ?>
    </tr>
</table>
</div>